package cn.wsalix.pay.entity;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import cn.anlaser.entity.SimpleEntity;

/**
 * @author Administrator
 * https://doc.open.alipay.com/doc2/detail.htm?spm=0.0.0.0.sGnkta&treeId=59&articleId=103666&docType=1
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "ALIPAY_NOTIFY")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@EntityListeners({ AuditingEntityListener.class })
@Data
@EqualsAndHashCode(callSuper = false)
public class AlipayNotify extends SimpleEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1740369967883065620L;
	private String gmt_create;
	private String buyer_email;
	private String seller_email;
	private String notify_time;
	private String quantity;
	private String subject;
	private String use_coupon;
	private String sign;
	private String discount;
	private String body;
	private String buyer_id;
	private String notify_id;
	private String notify_type;
	private String payment_type;
	private String out_trade_no;
	private String price;
	private String trade_status;
	private String total_fee;
	private String trade_no;
	private String sign_type;
	private String seller_id;
	private String is_total_fee_adjust;
	
	private String gmt_payment;//交易付款时间
	private String refund_status;//退款状态
	private String gmt_refund;//退款时间
}
